* {
    border-style: none;
    font-size: 14px;
}

input {
    color: black;
}

ul {
    list-style: none;
}

p {
    margin: 0;
    word-break: break-all;
}

textarea {
    color: black;
}

a,
name {
    color: black;
    cursor: pointer;
}

body {
    font-family: 'Microsoft YaHei';
    background-color: white;
    color: black;
}

header {
    overflow: hidden;
}

.portrait {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}


/*登录页面*/

.login section,
.signin section {
    width: 80%;
    margin: 5% auto;
    /*border: solid 2px slategrey;*/
    border-radius: 10px;
    padding: 10%;
    box-sizing: border-box;
    position: relative;
}

.login section h1,
.signin section h1 {
    text-align: center;
    font-size: 50px;
    font-family: '宋体';
    font-weight: bold;
    color: #0F88EB;
}

.login section input,
.signin section input {
    width: 100%;
    height: 40px;
    border: solid 1px gray;
    border-radius: 3px;
    margin: 10px 0;
    padding: 0 10px;
    background-color: white;
    box-sizing: border-box
}

#login,
#res {
    background-color: #0F88EB;
}

#login:hover,
#res:hover {
    opacity: 0.6;
}

.form {
    border: solid 1px gray;
    border-radius: 5px;
    background-color: white;
    padding: 5%;
    box-shadow: 5px 6px 6px 6px grey;
}

.errorbox {
    position: absolute;
    top: 40px;
    padding: 10px;
    z-index: 100;
    left: 30%;
    color: #b94a48;
    background-color: #f2dede;
    border-color: #ebccd1;
    border-radius: 5px;
    width: 40%;
    text-align: center;
}

.successbox {
    z-index: 100;
    left: 50%;
    color: #468847;
    background-color: #dff0d8;
    border-color: #d6e9c6;
    height: 50px;
    line-height: 50px;
    border-radius: 5px;
    width: 200px;
    position: absolute;
    text-align: center;
}


/*注册页面*/


/*个人中心*/

#my {
    padding-top: 20px;
}

#my #preview {
    width: 100px;
    height: 100px
}

#my #preview img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

#my input {
    background-color: white;
    color: black;
}

#my #upload {
    border: solid 1px #666;
    width: 100px;
    padding: 3px;
    background-color: #333;
    color: white;
}

#my .btn.btn-default {
    border: solid 1px #666;
    background-color: #333;
    color: wheat;
}


/*导航*/

.navigation .nav li {
    float: left;
}

nav a {
    float: right;
    /*width: 50px;*/
    margin: 0 15px;
    line-height: 50px;
    color: grey;
}

nav a:hover {
    color: black;
}


/*主页*/

main {
    box-sizing: border-box
}

.home {
    border: 1px solid grey;
    box-shadow: 2px 3px 5px grey;
}

.home textarea {
    width: 80%;
    padding: 10px;
    background-color: lightgrey;
    height: 64px;
    box-sizing: border-box;
    border: 1px solid grey;
    border-radius: 5px;
    box-shadow: 2px 2px 2px grey;
}

.home section:nth-child(1) {
    margin: 20px;
    margin-bottom: 20px;
}


/*签到*/

.home>section>form>input[type=submit] {
    /*margin-top: 20px;*/
    width: 17%;
    border: solid 1px #0F88EB;
    border-radius: 5px;
    background-color: #0F88EB;
    box-sizing: border-box;
    height: 64px;
}

.home>section>form>input[type=submit]:hover {
    opacity: 0.6;
}

.home section {
    overflow: hidden;
}

.home ul {
    padding: 20px;
    width: 70%;
    float: right;
    border-left: 5px solid darkslategrey;
}

.home ul li i {
    width: 20px;
    height: 20px;
    background-color: darkslategrey;
    display: block;
    position: relative;
    right: 33px;
    border-radius: 50%;
}

.home ul li time {
    position: relative;
    right: 120px;
    bottom: 18px;
}

.home ul li {
    border: 1px solid #333;
    margin: 20px 0;
    /*padding: 20px;*/
}

.home ul li .blog {
    cursor: pointer;
    color: #0F88EB;
}

.home ul li name {
    font-size: 25px;
    color: darkslategrey;
    position: relative;
    bottom: 30px;
    left: 10px;
}

.home ul li p {
    font-size: 18px;
    padding: 0 20px 20px 20px;
}


/*留言*/

.message section form textarea,
.blog section form textarea {
    width: 80%;
    padding: 10px;
    background-color: lightgrey;
    box-sizing: border-box;
    height: 60px;
    border: 1px solid grey;
    border-radius: 5px;
}

.message section input[type=submit] {
    /*margin-top: 20px;*/
    width: 18%;
    border: solid 1px #0F88EB;
    border-radius: 3px;
    background-color: #0F88EB;
    box-sizing: border-box;
    height: 60px;
}

.message .replyUl {
    padding: 0px;
}

.message .replyLi {
    margin: 20px 0;
    padding: 20px;
    box-sizing: border-box;
    border: solid 1px gray;
}

.message .reply textarea {
    height: 40px;
}

.message .reply input[value='回复'] {
    height: 40px;
}

.message p {
    padding: 10px;
}

.message name+span {
    font-size: 14px;
    color: darkslategrey;
}

.message time {
    font-size: 14px;
    color: #666
}

.message hr {
    border-color: #333;
}


/*删除*/

a.delete {
    font-size: 15px;
    color: red;
}


/*博客页面*/


/*添加博客*/

.addblog section,
.amendblog section {
    padding: 10px 10px;
    background-color: #cfbaaa;
    border: solid 2px sandybrown;
    border-radius: 5px;
}

.addblog input,
.amendblog input {
    /*width: 100px;*/
    border: solid 1px gray;
    border-radius: 3px;
    background-color: white;
    box-sizing: border-box
}

.addblog input[name='title'],
.amendblog input[name='title'] {
    color: darkslategrey;
    display: block;
    width: 80%;
    padding: 3px 20px;
    margin: 10px auto;
    font-size: 24px;
    text-align: center;
}

.addblog input[type="submit"],
.addblog input[type="reset"],
.amendblog input[type="submit"],
.amendblog input[type="reset"] {
    padding: 3px 10px;
    margin-top: 10px;
    font-size: 16px;
}


/*博客列表*/

.blogs section {
    padding: 20px;
    background-color: white;
}

.blogs .list {
    font-size: 20px;
    margin: 10px 20px;
    font-weight: bold;
}

.blogs .addList {
    font-size: 18px;
    font-weight: bolder;
    color: darkslategrey;
}

.blogs .aBlog {
    cursor: pointer;
    overflow: hidden;
}

.blogs .aBlog span,
.blogs .aBlog time {
    font-size: 14px;
    color: grey;
}

.blogs .aBlog a:host {
    display: none;
}

.blogs .aBlog .blog {
    border-radius: 5px;
    float: right;
}

.blogs section>ul {
    padding: 0px;
}

.blogs section ul .aBlog {
    border: solid 1px #555;
    padding: 10px;
    margin-top: 20px;
}


/*博客详情*/

.blogInfo {
    padding: 1px;
    background-color: wheat;
    border-radius: 10px;
}

.blogInfo>div {
    padding: 20px;
}

.blogInfo article {
    border: solid 1px #555;
    margin: 30px 0;
    padding: 20px;
    overflow: unset;
}

#blog>.comment {
    padding-top: 20px;
}

#blog>.comment>form>textarea {
    height: 60px;
    width: 80%;
}

#blog>.comment>form>input {
    height: 60px;
    width: 18%;
    background-color: lightgrey;
}

#blog>.answer {
    padding: 5%;
}

#blog>.answer ul {
    padding: 0px;
}

#blog>.answer ul li {
    padding: 20px 0;
    border-bottom: solid 1px #333;
}

#blog>.answer span {
    color: #999;
}

.edit {
    color: green;
}


/*心情*/

time {
    color: grey;
    font-size: 12px;
    margin-right: 5px;
}

.mood section:nth-child(1) {
    margin-left: 0;
    padding: 0;
    padding-bottom: 20px;
}

.mood textarea {
    background-color: lightgrey;
    height: 64px;
    width: 80%;
    padding: 20px;
}

.mood .reply textarea {
    height: 38px;
    padding: 6px 10px;
    background-color: lightgrey
}

.mood .addMood input {
    width: 17%;
    border: solid 1px gray;
    border-radius: 3px;
    background-color: white;
    box-sizing: border-box;
    height: 64px;
}

.mood .reply input {
    /*width: 17%;*/
    border: solid 1px grey;
    border-radius: 3px;
    background-color: seagreen;
    box-sizing: border-box;
    height: 38px;
}

.mood .addMood {
    background-color: white;
    padding: 20px;
}

.mood .replyUl {
    padding: 0;
}

.mood .replyUl>li {
    width: 80%;
    border: solid 1px grey;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

.mood .comment {
    padding: 10px;
    border: solid 1px #222;
}

.icon-ok-sign {
    color: green;
}

.icon-remove-sign {
    color: red;
}